Speech-to-Text
This API endpoint transcribes audio into text. The audio must be base64-encoded.
Header Parameters
The content type should be application/json
Specifies the user agent string.
Specifies the client name
API key for authorization
Request Body
- The language of the audio content.
- Supported languages: [ "English", "Hindi", "Gujarati", "Marathi", "Telugu", "Bengali", "Kannada", "Malayalam", "Tamil", "Spanish", "German", "Italian", "French", "Urdu", "Punjabi", "Assamese", "Oriya", "Arabic", "Simplified Chinese", "Traditional Chinese", "Bahasa", "Dutch", "Korean", "Malay", "Polish", "Portuguese", "Russian", "Tagalog", "Thai", "Turkish", "Vietnamese" ]
audio object
Base64-encoded audio content.
config object
The encoding format of the audio.
The sample rate in Hertz of the audio content.
Possible values: [jiotranslate
, google
, azure
]
Platform used for translation
The duration of the audio in seconds.
- 200
- 400
- 401
- 422
Success
Schema
Status of response of the API
The translated text from the audio.
{
"status": "string",
"recognized_text": "string"
}
{
"status": "Success",
"recognized_text": "शुभोदय निया रात्रि नींबू"
}
Bad Request
Schema
Status of the API
The error message of the API
{
"status": "string",
"message": "string"
}
{
"status": "failed",
"message": "Bad Request"
}
Unauthorized
Schema
Status of the API
The error message of the API
{
"status": "string",
"message": "string"
}
{
"status": "failed",
"message": "Bad audio content"
}
Unprocessable Entity
Schema
Status of the API
The error message of the API
The errors array which includes objects with a "property" and "message" properties describing the error
{
"customCode": 0,
"message": "string"
}
{
"customCode": 422,
"message": "Validation Error",
"errorsArray": []
}